import com.lbi.animation.group.Queue;
import com.lbi.animation.single.Tween;
import com.lbi.debug.Log;

import asunit.framework.TestCase;

/**
 * @author micfor
 */
class animation.queue.QueueTestCase extends TestCase {
	private var className : String = "QueueTestCase";
	private var test_obj : Queue;
	private var FRAMES : Number = 5;
	private var TARGET_VALUE : Number = 1;

	
	private function onQueueComplete() : Void {
		Log.debug("Queue complete");
		super.run();
	}

	
	private function addTweenValuePairs(names:Array):Void{
		for (var i : Number = 0; i < names.length; i++) {
			var name:String = names[i];
			addTweenValuePair(name);
		}	
	}
	private function addTweenValuePair(tween_name : String) : Void {
		var value_name:String =tween_name + "_item_value"; 
		this[value_name] = 0;
		this[tween_name + "_tween"] = new Tween(this,value_name,TARGET_VALUE, FRAMES);
	}
	private function assertValuesEqualTo(target_value:Number,values : Array) : Void {
		for (var i : Number = 0; i < values.length; i++) {
			var value:Number = values[i];
			assertEquals(target_value, value);
		}
	}
}